import Vue from 'vue'
import Router from 'vue-router'
import index from '@/views/index.vue'
import book from '@/views/book.vue'
import bookinfo from '@/views/bookinfo.vue'

Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
    },
    {
      path: '/book/:id',
      name: 'book',
      component: book,
    },
    {
      path: '/reader/id/:id/book/:bookId',
      name: 'bookinfo',
      component: bookinfo,
    }
  ]
})
